﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace JST.TPLMS.Entitys
{
    [Table("Relations")]
    public partial class Relations
    {
        public Relations()
        {
            this.Id = 0;
            this.SrcId = 0;
            this.DestId = 0;
            this.Description = string.Empty;
            this.Key = string.Empty;
            this.Status = 0;
            this.OperateTime = DateTime.Now;
            this.OperatorId = 0;
        }
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        public int SrcId { get; set; }

        public int DestId { get; set; }


        [StringLength(100)]
        public string Description { get; set; }

        [Required]
        [StringLength(100)]
        public string Key { get; set; }

        public int Status { get; set; }

        public DateTime OperateTime { get; set; }

        public int OperatorId { get; set; }
    }
}
